package com.malie.myspringboot.designPattern.abstractFactory;

public class PhoneFactory extends AbstractFactory {
    @Override
    public SharePhone getPhone(String phoneType) {
        switch (phoneType) {
            case "phone1":
                return new Phone1();
            case "phone2":
                return new Phone2();
            default:
                return null;
        }
    }

    @Override
    public ShareTablet getTablet(String tabletType) {
        return null;
    }
}
